package com.franklin.validation.tool.annotations.spring;

import com.franklin.validation.tool.annotations.BaseAnnotation;

/**
 * Description :
 * Create By: Franklin
 * Date : 2020/6/19 14:44
 */
public enum  ControllerAnnotations implements BaseAnnotation{
    CONTROLLER("Controller", "org.springframework.stereotype.Controller"),
    REST_CONTROLLER("RestController", "org.springframework.web.bind.annotation.RestController");

    private String qualifiedName;
    private String methodName;

    ControllerAnnotations(String qualifiedName, String methodName) {
        this.qualifiedName = qualifiedName;
        this.methodName = methodName;
    }
    @Override
    public String getQualifiedName() {
        return this.qualifiedName;
    }

    @Override
    public String getShortName() {
        return this.methodName;
    }
}
